package com.jing.ads.model;

import java.util.ArrayList;

public class PushAppInfo extends Entry {

	private String baseUrl = "";
	private ArrayList<AppDetail> appsList = new ArrayList<PushAppInfo.AppDetail>();
	
	
	public String getBaseUrl() {
		return baseUrl;
	}

	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}

	public ArrayList<AppDetail> getAppsList() {
		return appsList;
	}

	public static class AppDetail extends Entry {
		private static final long serialVersionUID = 7894580541770456245L;
		
		//define the downloadStatus value for App
		public static final int UNDOWNLOAD = 0;
		public static final int DOWNLOADING = 1;
		public static final int DOWNLOADED = 2; 
		public static final int PAUSE = 3; 
		
		public String appId;
		public int appIndex;
	    public String appName;    
	    public String packageName;
	    public int versionCode;  
	    public String versionName;
	    public int downloadCount;
	    public int size;
	    public String market;
	    public String sizeStr;
	    public String iconUrl;
	    public String downloadUrl;
//	    public int downloadType;
	    public int downloadStatus;
	    public String filePath;
	    
	    public AppDetail() {
	    	
	    }
	    
	    public AppDetail(String appId) {
	    	this.appId = appId;
	    }

		@Override
		public int hashCode() {
			return Integer.valueOf(this.appId);
		}
	}
}
